<% content_for :css do %>
  <%= stylesheet_link_tag 'quoted_enterprises' %>  
<% end %>
<% content_for :title do %>报价同行<% end %>
<div class='quoted_enterprises grid_24'>
  <div class="grid_24  alpha" id="sub_nav_bar">
      <%= link_to '报价同行','', :class => :head %>&gt;
    <%= link_to '三大件','' %>
  </div>
  <div class='clear'></div>
  <div class="enterprises_info_info enterprises_info_top grid_20 push_1">
    共<b><%= @enterprises.size %></b>条
  </div>
  <div class='enterprises  grid_20 push_1'>
  <% @enterprises.each do |enterprise| %>
    <div class="enterprise">
      <div class="title">
        <%= link_to enterprise.name, 
              enterprise_peer_prices_url(:enterprise_id => enterprise),
              :title => "查看#{enterprise.name}报价" ,
              :target => :_blank
         %>
      </div>
      <div class="info grid_6">
        <div class="attributes grid_6">
          <div class="grid_6">
            <span>地址:</span><%= enterprise.address %>
          </div>
          <div class="grid_6">
            <span>电话:</span><%= enterprise.link_phone %>
          </div>
          <div class="grid_6">
            <span>传真:</span><%= enterprise.fax %>
          </div>
          <div class="grid_6">
            <span>电邮:</span><%= link_to enterprise.email, "mailto:#{enterprise.email}" %>
          </div>
          <div class="qq grid_6">
            <span>客服:</span>
            <% enterprise.qqs.each_with_index do |qq,index| %>
              <a title="点击这里给我发消息" href="http://wpa.qq.com/msgrd?v=3&amp;uin=<%= qq %>&amp;site=qq&amp;menu=yes" target="_blank"><img border="0" src="http://wpa.qq.com/pa?p=2:<%= qq %>:45"><%= index + 1 %>号</a>            
            <% end %>
          </div>
        </div>
      </div>
      <div class="synopsis grid_6  push_1">
        <%= enterprise.synopsis %>&nbsp;
      </div>
      <div class="peer_price grid_4 push_3 omega">
        <%= link_to '查看报价', 
              enterprise_peer_prices_url(:enterprise_id => enterprise),
              :title => "查看#{enterprise.name}报价" ,
              :target => :_blank
         %>
      </div>
      <div class="clear"></div>
    </div>
  <% end %>
  </div>
  <div class="enterprises_info enterprises_info_bottom grid_20 push_1">
    共<b><%= @enterprises.size %></b>条
  </div>
  <div class="clear"></div>
</div>